<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .cls {
            position: relative;
            top: 0;
            left: 0;
            width: 100px;
            height: 100px;
            background-color: skyblue;
            animation: move 2s linear 0s infinite;
        }

        @keyframes move {
            0% {}

            25% {
                transform: translate(500px,0);
            }

            50% {
                transform: translate(500px,500px);
            }

            75% {
                transform: translate(0, 500px)
            }

            100% {
                transform: translate(0,0);
            }
        }
    </style>
</head>

<body>
    <div class="cls"></div>
</body>

</html>